Optimal. Leaf size=152 \[ \frac {b^2 (2 A b+5 a B) x \sqrt {a+b x^2}}{2 a}-\frac {b (2 A b+5 a B) \left (a+b x^2\right )^{3/2}}{3 a x}-\frac {(2 A b+5 a B) \left (a+b x^2\right )^{5/2}}{15 a x^3}-\frac {A \left (a+b x^2\right )^{7/2}}{5 a x^5}+\frac {1}{2} b^{3/2} (2 A b+5 a B) \tanh ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a+b x^2}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 152, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 5, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.227, Rules used = {464, 283, 201,
223, 212} \begin {gather*} \frac {1}{2} b^{3/2} (5 a B+2 A b) \tanh ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a+b x^2}}\right )+\frac {b^2 x \sqrt {a+b x^2} (5 a B+2 A b)}{2 a}-\frac {b \left (a+b x^2\right )^{3/2} (5 a B+2 A b)}{3 a x}-\frac {\left (a+b x^2\right )^{5/2} (5 a B+2 A b)}{15 a x^3}-\frac {A \left (a+b x^2\right )^{7/2}}{5 a x^5} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 201
Rule 212
Rule 223
Rule 283
Rule 464
Rubi steps
\begin {align*} \int \frac {\left (a+b x^2\right )^{5/2} \left (A+B x^2\right )}{x^6} \, dx &=-\frac {A \left (a+b x^2\right )^{7/2}}{5 a x^5}-\frac {(-2 A b-5 a B) \int \frac {\left (a+b x^2\right )^{5/2}}{x^4} \, dx}{5 a}\\ &=-\frac {(2 A b+5 a B) \left (a+b x^2\right )^{5/2}}{15 a x^3}-\frac {A \left (a+b x^2\right )^{7/2}}{5 a x^5}+\frac {(b (2 A b+5 a B)) \int \frac {\left (a+b x^2\right )^{3/2}}{x^2} \, dx}{3 a}\\ &=-\frac {b (2 A b+5 a B) \left (a+b x^2\right )^{3/2}}{3 a x}-\frac {(2 A b+5 a B) \left (a+b x^2\right )^{5/2}}{15 a x^3}-\frac {A \left (a+b x^2\right )^{7/2}}{5 a x^5}+\frac {\left (b^2 (2 A b+5 a B)\right ) \int \sqrt {a+b x^2} \, dx}{a}\\ &=\frac {b^2 (2 A b+5 a B) x \sqrt {a+b x^2}}{2 a}-\frac {b (2 A b+5 a B) \left (a+b x^2\right )^{3/2}}{3 a x}-\frac {(2 A b+5 a B) \left (a+b x^2\right )^{5/2}}{15 a x^3}-\frac {A \left (a+b x^2\right )^{7/2}}{5 a x^5}+\frac {1}{2} \left (b^2 (2 A b+5 a B)\right ) \int \frac {1}{\sqrt {a+b x^2}} \, dx\\ &=\frac {b^2 (2 A b+5 a B) x \sqrt {a+b x^2}}{2 a}-\frac {b (2 A b+5 a B) \left (a+b x^2\right )^{3/2}}{3 a x}-\frac {(2 A b+5 a B) \left (a+b x^2\right )^{5/2}}{15 a x^3}-\frac {A \left (a+b x^2\right )^{7/2}}{5 a x^5}+\frac {1}{2} \left (b^2 (2 A b+5 a B)\right ) \text {Subst}\left (\int \frac {1}{1-b x^2} \, dx,x,\frac {x}{\sqrt {a+b x^2}}\right )\\ &=\frac {b^2 (2 A b+5 a B) x \sqrt {a+b x^2}}{2 a}-\frac {b (2 A b+5 a B) \left (a+b x^2\right )^{3/2}}{3 a x}-\frac {(2 A b+5 a B) \left (a+b x^2\right )^{5/2}}{15 a x^3}-\frac {A \left (a+b x^2\right )^{7/2}}{5 a x^5}+\frac {1}{2} b^{3/2} (2 A b+5 a B) \tanh ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a+b x^2}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.24, size = 108, normalized size = 0.71 \begin {gather*} \frac {\sqrt {a+b x^2} \left (-6 a^2 A-22 a A b x^2-10 a^2 B x^2-46 A b^2 x^4-70 a b B x^4+15 b^2 B x^6\right )}{30 x^5}-\frac {1}{2} b^{3/2} (2 A b+5 a B) \log \left (-\sqrt {b} x+\sqrt {a+b x^2}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(259\) vs.
\(2(128)=256\).
time = 0.09, size = 260, normalized size = 1.71
method | result | size |
risch | \(-\frac {\sqrt {b \,x^{2}+a}\, \left (-15 b^{2} B \,x^{6}+46 A \,b^{2} x^{4}+70 B a b \,x^{4}+22 a A b \,x^{2}+10 B \,a^{2} x^{2}+6 a^{2} A \right )}{30 x^{5}}+A \,b^{\frac {5}{2}} \ln \left (x \sqrt {b}+\sqrt {b \,x^{2}+a}\right )+\frac {5 B \,b^{\frac {3}{2}} \ln \left (x \sqrt {b}+\sqrt {b \,x^{2}+a}\right ) a}{2}\) | \(110\) |
default | \(A \left (-\frac {\left (b \,x^{2}+a \right )^{\frac {7}{2}}}{5 a \,x^{5}}+\frac {2 b \left (-\frac {\left (b \,x^{2}+a \right )^{\frac {7}{2}}}{3 a \,x^{3}}+\frac {4 b \left (-\frac {\left (b \,x^{2}+a \right )^{\frac {7}{2}}}{a x}+\frac {6 b \left (\frac {x \left (b \,x^{2}+a \right )^{\frac {5}{2}}}{6}+\frac {5 a \left (\frac {x \left (b \,x^{2}+a \right )^{\frac {3}{2}}}{4}+\frac {3 a \left (\frac {x \sqrt {b \,x^{2}+a}}{2}+\frac {a \ln \left (x \sqrt {b}+\sqrt {b \,x^{2}+a}\right )}{2 \sqrt {b}}\right )}{4}\right )}{6}\right )}{a}\right )}{3 a}\right )}{5 a}\right )+B \left (-\frac {\left (b \,x^{2}+a \right )^{\frac {7}{2}}}{3 a \,x^{3}}+\frac {4 b \left (-\frac {\left (b \,x^{2}+a \right )^{\frac {7}{2}}}{a x}+\frac {6 b \left (\frac {x \left (b \,x^{2}+a \right )^{\frac {5}{2}}}{6}+\frac {5 a \left (\frac {x \left (b \,x^{2}+a \right )^{\frac {3}{2}}}{4}+\frac {3 a \left (\frac {x \sqrt {b \,x^{2}+a}}{2}+\frac {a \ln \left (x \sqrt {b}+\sqrt {b \,x^{2}+a}\right )}{2 \sqrt {b}}\right )}{4}\right )}{6}\right )}{a}\right )}{3 a}\right )\) | \(260\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.30, size = 198, normalized size = 1.30 \begin {gather*} \frac {5}{2} \, \sqrt {b x^{2} + a} B b^{2} x + \frac {5 \, {\left (b x^{2} + a\right )}^{\frac {3}{2}} B b^{2} x}{3 \, a} + \frac {2 \, {\left (b x^{2} + a\right )}^{\frac {3}{2}} A b^{3} x}{3 \, a^{2}} + \frac {\sqrt {b x^{2} + a} A b^{3} x}{a} + \frac {5}{2} \, B a b^{\frac {3}{2}} \operatorname {arsinh}\left (\frac {b x}{\sqrt {a b}}\right ) + A b^{\frac {5}{2}} \operatorname {arsinh}\left (\frac {b x}{\sqrt {a b}}\right ) - \frac {4 \, {\left (b x^{2} + a\right )}^{\frac {5}{2}} B b}{3 \, a x} - \frac {8 \, {\left (b x^{2} + a\right )}^{\frac {5}{2}} A b^{2}}{15 \, a^{2} x} - \frac {{\left (b x^{2} + a\right )}^{\frac {7}{2}} B}{3 \, a x^{3}} - \frac {2 \, {\left (b x^{2} + a\right )}^{\frac {7}{2}} A b}{15 \, a^{2} x^{3}} - \frac {{\left (b x^{2} + a\right )}^{\frac {7}{2}} A}{5 \, a x^{5}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.13, size = 220, normalized size = 1.45 \begin {gather*} \left [\frac {15 \, {\left (5 \, B a b + 2 \, A b^{2}\right )} \sqrt {b} x^{5} \log \left (-2 \, b x^{2} - 2 \, \sqrt {b x^{2} + a} \sqrt {b} x - a\right ) + 2 \, {\left (15 \, B b^{2} x^{6} - 2 \, {\left (35 \, B a b + 23 \, A b^{2}\right )} x^{4} - 6 \, A a^{2} - 2 \, {\left (5 \, B a^{2} + 11 \, A a b\right )} x^{2}\right )} \sqrt {b x^{2} + a}}{60 \, x^{5}}, -\frac {15 \, {\left (5 \, B a b + 2 \, A b^{2}\right )} \sqrt {-b} x^{5} \arctan \left (\frac {\sqrt {-b} x}{\sqrt {b x^{2} + a}}\right ) - {\left (15 \, B b^{2} x^{6} - 2 \, {\left (35 \, B a b + 23 \, A b^{2}\right )} x^{4} - 6 \, A a^{2} - 2 \, {\left (5 \, B a^{2} + 11 \, A a b\right )} x^{2}\right )} \sqrt {b x^{2} + a}}{30 \, x^{5}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 292 vs.
\(2 (136) = 272\).
time = 4.36, size = 292, normalized size = 1.92 \begin {gather*} - \frac {A \sqrt {a} b^{2}}{x \sqrt {1 + \frac {b x^{2}}{a}}} - \frac {A a^{2} \sqrt {b} \sqrt {\frac {a}{b x^{2}} + 1}}{5 x^{4}} - \frac {11 A a b^{\frac {3}{2}} \sqrt {\frac {a}{b x^{2}} + 1}}{15 x^{2}} - \frac {8 A b^{\frac {5}{2}} \sqrt {\frac {a}{b x^{2}} + 1}}{15} + A b^{\frac {5}{2}} \operatorname {asinh}{\left (\frac {\sqrt {b} x}{\sqrt {a}} \right )} - \frac {A b^{3} x}{\sqrt {a} \sqrt {1 + \frac {b x^{2}}{a}}} - \frac {2 B a^{\frac {3}{2}} b}{x \sqrt {1 + \frac {b x^{2}}{a}}} + \frac {B \sqrt {a} b^{2} x \sqrt {1 + \frac {b x^{2}}{a}}}{2} - \frac {2 B \sqrt {a} b^{2} x}{\sqrt {1 + \frac {b x^{2}}{a}}} - \frac {B a^{2} \sqrt {b} \sqrt {\frac {a}{b x^{2}} + 1}}{3 x^{2}} - \frac {B a b^{\frac {3}{2}} \sqrt {\frac {a}{b x^{2}} + 1}}{3} + \frac {5 B a b^{\frac {3}{2}} \operatorname {asinh}{\left (\frac {\sqrt {b} x}{\sqrt {a}} \right )}}{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 321 vs.
\(2 (128) = 256\).
time = 1.46, size = 321, normalized size = 2.11 \begin {gather*} \frac {1}{2} \, \sqrt {b x^{2} + a} B b^{2} x - \frac {1}{4} \, {\left (5 \, B a b^{\frac {3}{2}} + 2 \, A b^{\frac {5}{2}}\right )} \log \left ({\left (\sqrt {b} x - \sqrt {b x^{2} + a}\right )}^{2}\right ) + \frac {2 \, {\left (45 \, {\left (\sqrt {b} x - \sqrt {b x^{2} + a}\right )}^{8} B a^{2} b^{\frac {3}{2}} + 45 \, {\left (\sqrt {b} x - \sqrt {b x^{2} + a}\right )}^{8} A a b^{\frac {5}{2}} - 150 \, {\left (\sqrt {b} x - \sqrt {b x^{2} + a}\right )}^{6} B a^{3} b^{\frac {3}{2}} - 90 \, {\left (\sqrt {b} x - \sqrt {b x^{2} + a}\right )}^{6} A a^{2} b^{\frac {5}{2}} + 200 \, {\left (\sqrt {b} x - \sqrt {b x^{2} + a}\right )}^{4} B a^{4} b^{\frac {3}{2}} + 140 \, {\left (\sqrt {b} x - \sqrt {b x^{2} + a}\right )}^{4} A a^{3} b^{\frac {5}{2}} - 130 \, {\left (\sqrt {b} x - \sqrt {b x^{2} + a}\right )}^{2} B a^{5} b^{\frac {3}{2}} - 70 \, {\left (\sqrt {b} x - \sqrt {b x^{2} + a}\right )}^{2} A a^{4} b^{\frac {5}{2}} + 35 \, B a^{6} b^{\frac {3}{2}} + 23 \, A a^{5} b^{\frac {5}{2}}\right )}}{15 \, {\left ({\left (\sqrt {b} x - \sqrt {b x^{2} + a}\right )}^{2} - a\right )}^{5}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {\left (B\,x^2+A\right )\,{\left (b\,x^2+a\right )}^{5/2}}{x^6} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________